package com.leen.user.controller;


import com.alibaba.fastjson.JSONObject;
import com.leen.user.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping(value ="/user")
public class UserController {

    @GetMapping(value = "/data")
    public User data(){
        User user=new User();
        user.setId(1000);
        user.setName("王毅");
        return user;
    }

}
